package com.aiyige.page.my.message.notifymessage.sysmessage.model;

import java.util.List;

/**
 * Created by zhuyakun on 2017/11/28.
 */

public class SystemMessage {
    String id;
    String title;
    String content;
    long time;
    String router;
    List<Operation> operationList;

    public SystemMessage() {
    }

    private SystemMessage(Builder builder) {
        setId(builder.id);
        setTitle(builder.title);
        setContent(builder.content);
        setTime(builder.time);
        setRouter(builder.router);
        setOperationList(builder.operationList);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getRouter() {
        return router;
    }

    public void setRouter(String router) {
        this.router = router;
    }

    public List<Operation> getOperationList() {
        return operationList;
    }

    public void setOperationList(List<Operation> optionList) {
        this.operationList = optionList;
    }

    public static final class Builder {
        private String id;
        private String title;
        private String content;
        private long time;
        private String router;
        private List<Operation> operationList;

        private Builder() {
        }

        public Builder id(String val) {
            id = val;
            return this;
        }

        public Builder title(String val) {
            title = val;
            return this;
        }

        public Builder content(String val) {
            content = val;
            return this;
        }

        public Builder time(long val) {
            time = val;
            return this;
        }

        public Builder router(String val) {
            router = val;
            return this;
        }

        public Builder operationList(List<Operation> val) {
            operationList = val;
            return this;
        }

        public SystemMessage build() {
            return new SystemMessage(this);
        }
    }
}
